<?php
if ($_GET[fname] != '' && file_exists("$_GET[fname]")) {
	require "$_GET[fname]";
} else if ($_GET[type] == 'matrix') {
	//require "matrix_cache_blank";
	$tmp = json_decode(file_get_contents("matrix_cache_blank"));
	$tmp->originAddresses[0] = $_GET[address];
	$tmp->destinationAddresses[0] = $_GET[address];
	echo json_encode($tmp);
}
?>